package com.shengruan.admin.action;

import javax.servlet.http.HttpSession;

import com.shengruan.common.BaseAction;
import com.shengruan.common.Constants;

public class AdminLogoutAction extends BaseAction {

    @Override
    public void execute() throws Exception{
        HttpSession session = request.getSession();
        session.setAttribute(Constants.ADMIN, null);
		session.invalidate();
		this.redirect("/adminLogin.jsp");
    }
}
